package com.xmy.cultivate.feign;

import com.xmy.cultivate.entity.Course;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(value = "wecharts")
public interface WecharFeignClient {

    /**
     * 发送签到
     * @param body
     * @return
     */
    @RequestMapping("/api/wecharTemp/sendSignIn")
    public String sendSignIn(@RequestBody String body);

    /**
     * 发送微信推送信息
     * @param body
     * @return
     */
    @RequestMapping("/api/wecharTemp/sendWecharMsg")
    public String sendWecharMsg(@RequestBody String body);

    @RequestMapping(value = "/api/Temp/test",method= RequestMethod.POST)
    public String Test(@RequestBody Course course);
}
